package com.wenda.homeschooedu.servlet;

import java.io.IOException;
import java.io.PrintWriter;


import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class TestServlet extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public  void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		 PrintWriter out = null ;
		  String result = "周雨浓来了";
		  
		  if (req.getParameter("name")!=null) {
			if (req.getParameter("name").equals("zhou")) {
				resp.setContentType("text/html;charset=utf-8");
				out = resp.getWriter() ;
				out.print(result);
				
				out.flush();
				out.close();
				
			}
		}
		  
		  
		  
	}
	

}
